<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">修改项目团队成员</h4>
</div>
<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/Project/Team/add')}" id="addTeamForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <input type="hidden" name="project_id" value="{$base_project_id}">
        <div class="box-body">
            <div class="form-group">
                <label>选择用户</label>
                <select class="form-control select2" name="user_id">
                                <option value="">请选择</option>
                                    {volist name="users" id="vo" }                       
                                    <option value="{$vo['id']}">{$vo['nickname']}</option>
                                    {/volist}                           
                        </select>

            </div>
            <div class="form-group">
                <label>电话</label>
                <input type="text" name="phone" class="form-control" id="phone" required placeholder="电话">
            </div>
            <div class="form-group">
                <label>邮箱</label>
                <input type="text" name="email" class="form-control" id="email" required placeholder="邮箱">
            </div>
            <div class="form-group">
                <label>职责</label>
                <input type="text" name="duty" class="form-control" id="duty" placeholder="职责">
            </div>


        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>

    </form>
</div>
<script>
    $(function() {
        ajax_form_submit("addTeamForm");
    });
</script>
<!-- /.box-body -->